home *** CD-ROM | disk | FTP | other *** search
/ Laboratorio Interattivo Deagostini / laboratorio interattivo deagostini.bin / swf / 65.swf / scripts / frame_1 / PlaceObject2_44_10 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2003-01-07  |  1KB  |  40 lines

  1. onClipEvent(enterFrame){
  2.    function verifica()
  3.    {
  4.       punteggio = 0;
  5.       i = 0;
  6.       lRisultati = new Array(lista.length);
  7.       i == 0;
  8.       while(lista.length - 1 >= i)
  9.       {
  10.          nomeClip = lista[i][0];
  11.          sceltaFatta = _parent.mask.esercizio[nomeClip].scelta;
  12.          if(sceltaFatta == lista[i][1])
  13.          {
  14.             punteggio += lista[i][2];
  15.             _parent.mask.esercizio[nomeClip].responso.gotoAndStop("Giusto");
  16.             var GiustoSbagliato = 1;
  17.          }
  18.          else
  19.          {
  20.             _parent.mask.esercizio[nomeClip].responso.gotoAndStop("Sbagliato");
  21.             var GiustoSbagliato = 0;
  22.          }
  23.          lRisultati[i] = "[" + (i + 1) + "," + sceltaFatta + "," + lista[i][1] + "," + GiustoSbagliato + "]";
  24.          i += 1;
  25.       }
  26.       _root.risultato = punteggio / TotPunteggio * 10;
  27.       getURL("Finito:[" + lRisultati + "]","");
  28.       _root.TempoScaduto = 0;
  29.       _root.AvviaVerifica = 0;
  30.    }
  31.    if(_root.TempoScaduto == "1")
  32.    {
  33.       Verifica();
  34.    }
  35.    if(_root.AvviaVerifica == "1")
  36.    {
  37.       Verifica();
  38.    }
  39. }
  40.